import { requestTemplate } from '@/api'
import { Pageable, SystemUserAddForm, SystemUserPageRequest } from '@/types'

/**
 * 分页查询
 */
const findPage = async (request: SystemUserPageRequest, pageable: Pageable) =>
  requestTemplate.findPage(`/system/user/findPage`, request, pageable)

/**
 * 新增
 */
const add = async (form: SystemUserAddForm) =>
  requestTemplate.add('/system/user/add', form)

/**
 * 系统用户后端接口
 */
export const systemUserApi = {
  findPage,
  add,
}
